package rise.net;

import rise.message.Login;
import rise.ui.AccessActivity;
import rise.ui.UserListActivity;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;

public class ImmediateLoginTask extends LoginTask {

	public ImmediateLoginTask(Activity activity, Login login, Context context) {
		super(activity, login, context, true);
	}

	@Override
	void loginCompleted() {
		//Log.e("-", "Login Completed");
		Intent intent = new Intent(activity, UserListActivity.class);
		activity.startActivity(intent);
	}
	
	@Override
	void handleAlreadyLogged() {
		Intent intent = new Intent(activity, AccessActivity.class);
		activity.startActivity(intent);
	}
}
